[WFLY-3276] Misc fix: exception is constructed but not thrown
Merge pull request #6189 from dmlloyd/wfly-3276

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