Can't log to debug log before chain params initialized
Add a function AreBaseParamsConfigured and use this to check
before writing to the debug log. This avoids assertions when the
application happens to log too early, which happens in the GUI.
Messages logged before the base parameters are configured can be
shown using -printtoconsole.