Make disabled() algorithm compatible with new application config. The disabled algorithm checks templated segments and applications. If the application or segment configuration is available, it checks disable status of the base object for templated ones. This is required for ADTCC-177