Ensures qpid and rabbitmq are correctly conditionalized for 2 outputs.

fix bug 1176153

Cherry pick from https://review.openstack.org/#/c/28191/

Change-Id: I877c14466d1dd853b5e73a8640e3bd4d5fcebba3
Merge "Ensures qpid and rabbitmq are correctly conditionalized for 2 outputs." into stable/grizzly