Fix issue with exception when sensor API returns 204 response