[PATCH 5.1 241/405] iio: hmc5843: fix potential NULL pointer dereferences