lsm_datatypes.cpp: Fix compiler return values
lsm_datatypes.cpp: Fix compiler return values

In one case we failed to return a value and in another
case we failed to check that the pointer was valid before
we started using it.

Signed-off-by: Tony Asleson <1ef2d381aa56d512126ddaacc29e68136e4fdf55@redhat.com>

cathay4t/libstoragemgmt,jumitche/libstoragemgmt,cathay4t/libstoragemgmt,HP-Scale-out-Storage/libstoragemgmt,HP-Scale-out-Storage/libstoragemgmt,lazy404/libstoragemgmt,tasleson/libstoragemgmt,libstorage/libstoragemgmt,joehandzik/libstoragemgmt,jumitche/libstoragemgmt,lazy404/libstoragemgmt,jumitche/libstoragemgmt,tasleson/libstoragemgmt,libstorage/libstoragemgmt,lazy404/libstoragemgmt,libstorage/libstoragemgmt,tasleson/libstoragemgmt,joehandzik/libstoragemgmt,libstorage/libstoragemgmt,cathay4t/libstoragemgmt,cathay4t/libstoragemgmt,tasleson/libstoragemgmt,HP-Scale-out-Storage/libstoragemgmt,tasleson/libstoragemgmt,HP-Scale-out-Storage/libstoragemgmt,cathay4t/libstoragemgmt,lazy404/libstoragemgmt,libstorage/libstoragemgmt,jumitche/libstoragemgmt,joehandzik/libstoragemgmt,jumitche/libstoragemgmt,joehandzik/libstoragemgmt