event_rabbitmq: read/write commands only once
Thanks to Brett and Trevor for helping in debugging this
Closes bug report #3610016