Fixes AMQ-4258: Endless loop when received incorrect AMQP message Applied patch sumbitted by Robert Balent. Many thanks!