Fixes history_log_event_special passing null to not null field
Avoid user_get_name call on empty string
use normal if construct instead of ternary operator