Use default instance namespace

Use default instance namespace for app_hooks when required but the user didn't supply an "application instance namespace"
Merge pull request #2984 from mkoistinen/use_default_instance_namespace

Address #2612 - Use default instance namespace