Update Log - removed crash for unset logPath

If you called printToLog but logPath = nil then there was a crash. I fixed it by adding a quick check to make sure logPath does not equal nil.