Fix NPE in debug log line