Added check for null location in sendLocation

This way, developers don't have to check for null everywhere
Merge pull request #65 from garys-esri/master

Added check for null location in sendLocation