WFLY-2712 NPE check