QPID-3769 Added a check to see if the subject is equal. (cherry picked from commit f08d757099b0c25a67353a06cd2c7706cbee701d)