Add pre/post conditions to MQ utility functions.
Add pre/post conditions to MQ utility functions.

Signed-off-by: Deepak Giridharagopal <d11186354d1ef01ca06ae37d7e23e827da13e85f@puppetlabs.com>

wkalt/puppetdb,kbrezina/puppetdb,highb/puppetdb,kbarber/puppetdb,ajroetker/puppetdb,jantman/puppetdb,cprice404/puppetdb,grimradical/puppetdb,kbarber/puppetdb,johnduarte/puppetdb,wkalt/puppetdb,wkalt/puppetdb,nfagerlund/puppetdb,haus/puppetdb,senior/puppetdb,grimradical/puppetdb,puppetlabs/puppetdb,waynr/puppetdb,jantman/puppetdb,puppetlabs/puppetdb,melissa/puppetdb,nfagerlund/puppetdb,grimradical/puppetdb,senior/puppetdb,github/puppetlabs-puppetdb,wkalt/puppetdb,rbrw/puppetdb,puppetlabs/puppetdb,ajroetker/puppetdb,rbrw/puppetdb,shrug/puppetdb,senior/puppetdb,highb/puppetdb,waynr/puppetdb,ajroetker/puppetdb,cprice404/puppetdb,haus/puppetdb,haus/puppetdb,highb/puppetdb,kbarber/puppetdb,johnduarte/puppetdb,rbrw/puppetdb,johnduarte/puppetdb,puppetlabs/puppetdb,stahnma/puppetdb,kbrezina/puppetdb,waynr/puppetdb,rbrw/puppetdb,mullr/puppetdb,highb/puppetdb,nfagerlund/puppetdb,github/puppetlabs-puppetdb,mullr/puppetdb,johnduarte/puppetdb,shrug/puppetdb,kbarber/puppetdb,waynr/puppetdb,jantman/puppetdb,mullr/puppetdb,github/puppetlabs-puppetdb,rbrw/puppetdb,mullr/puppetdb,kbrezina/puppetdb,senior/puppetdb,puppetlabs/puppetdb,cprice404/puppetdb,grimradical/puppetdb,melissa/puppetdb,kbrezina/puppetdb,stahnma/puppetdb,ajroetker/puppetdb,shrug/puppetdb,shrug/puppetdb,mullr/puppetdb,melissa/puppetdb,stahnma/puppetdb