JBPAPP-11049, throw IllegalStateException instead of returning null.

https://issues.jboss.org/browse/JBPAPP-11049
issue's description proposes to throw JMSException, however from JMSExceptionHelper in master, it throws an IllegalStateException when HornetQException's type is ILLEGAL_STATE