[WFLY-3276] Misc fix: exception is constructed but not thrown