#22724 - Fixed bug when multiple instances of the app are defined for an
environment