Check that a logger exists before logging in ConfigFile

Since the logger could be set to `nil` (as specified in Sinatra's README),
checking for its existence is necessary.