[BROOKLYN-92] Configure brokerName for ActiveMQ

Issue raised in jira: https://issues.apache.org/jira/browse/BROOKLYN-92
It should not, but coding errors could lead to NPEs if the wiring is not done right. Refactored the code to simplify as you suggest but added another check that would throw a more meaninful message than an NPE>