Handle null metadata value in log event for #589