Add checks before running rabbitmqctl commands

These checks prevent rabbitmq from erroring out and
not finishing its setup. This happens if these commands
are run more than once without checking if users and
virtualhosts have been added/deleted.