adding null check for instanceManager
Merge pull request #6678 from The-Alchemist/WFLY-3820

fix for WFLY-3820: adding null check for instanceManager