registry: fix for missing app object

* First checks if self.app is there before adding to
  blacklist. Fix for ModuleAutoDiscoverySubRegistry after
  62f6836.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>