Fixed minor syntax and logic errors in the rabbitmq output.
Merge pull request #1 from tavisto/output_rabbitmq_errors

Fixed minor syntax and logic errors in the rabbitmq output.