fixing bug in rabbitmq state
Merge pull request #9945 from grischa/rabbitmq-state-bugfix

fixing bug in rabbitmq state