Improve exception when environment not defined

  * Provides an explicit error detailing the problem
    Rather than the current 'undefined method symbolize keys' for NilClass
Ensure works in development mode by unloading alias method chain