WFLY-3623 (hang with invalid @Resource name) fix + testcase

Spurious ":" in @Resource annotation 'name' value results in invalid binding but no deployment error

Upstream + 8.x: https://issues.jboss.org/browse/WFLY-3623
BZ 6.x:  https://issues.jboss.org/browse/WFLY-3623

PRs:
master: https://github.com/wildfly/wildfly/pull/6587
8.x : https://github.com/wildfly/wildfly/pull/6588
EAP 6.x: https://github.com/jbossas/jboss-eap/pull/1554

Dont know where my original reply is. Well, this means depending on proper handling of RE by each class that calls this piece of code. Since there were quite few catch statements I had to add, this is not a case.