Fix incompatibility in AMQP code

Looks like that didn't work with our old ruby version