Fixed the null reference in the log message

fixes #57