https://issues.jboss.org/browse/HORNETQ-1342 - check for empty id map

added a check to see if there are actually any id's. I'll leave this for Justin to check as it was his original commit.