fix for WFLY-3820: adding null check for instanceManager