Fix null reference when logging (cherry picked from commit 93b754c366) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
93b754c366