Fix UnboundLocalError error

This change corrects the UnboundLocalError exception that
can occur if something bad happens on reconnect to RabbitMQ

Closes-Bug: #1272271

Change-Id: I9e157810caa7a45e9a61ec571cfe9024fabacf93
Merge "Fix UnboundLocalError error"