Fixed issue where some getter functions were not checking for a null argument.
Fixed issue where some getter functions were not checking for a null argument.

Originally this was by design, but working on it later, I decided it would be best to have these checks.  Shouldn't break any existing code.

acs9307/alib-c,acs9307/alib-c,acs9307/alib-c