Fix issue with app in ModuleAutoDiscoveryRegistry

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>