[WFLY-838] Don't throw exceptions for jsr 77 queryObjectNames()

This replaces #6545 
The use case in https://issues.jboss.org/browse/WFLY-838 works, and the TCK passes. I did not try the TCK against 6545 though.

This also addresses Brian's AppClientModuleHandler vs EJBModuleHandler concerns.