Fixed an npe that would occur if the debug property was not set in the configuration.