USERGRID-2806: added checks to ensure that we have valid configuration b...

...efore we try to send any data to server.