fix heartbeat negotiation issue when there is amqp authentication