SWITCHYARD-19466 Allow RESTEasy composer to throw WebApplicationException

Allow RESTEasy composer to throw WebApplicationException and add defensive logic to RESTEasyMessageComposer.