Allow getConfig() and getFlatConfig() to behave is grailsApplication is null