[JBWS-3719] Prevent NPE

https://issues.jboss.org/browse/JBWS-3719