Add extra check for empty string when detecting environment.

The default config file has production_environment to be an empty string, when only 'null' was being checked for (it says null or empty string to trigger environment auto-detect).