Added checks of pointers when reading data

* src/rmatio.c: Added more checks of non-null pointers when reading data