Removed null dereferences in I2C reads