Fix the external sensor worker to handle NULL payload properly