[8.0.1] [WFLY-3240] Implement workaround for WFLY-3044 without requiring a spec ...

...maintenance release

https://issues.jboss.org/browse/WFLY-3240

Also needs a Mojarra fix & release to be effective:
https://github.com/jboss/mojarra/pull/2