Fixed missing NULLs in log_event().