[WFLY-743] Protect against NullPointerException introduced by this change.