https://issues.apache.org/jira/browse/AMQCPP-550

Fix for potential NPE