[PATCH 5.0 217/346] iio: hmc5843: fix potential NULL pointer dereferences