Properly handle logging null.