Fix a bug where missing payload caused event emit job to crash