Fixed a bug on configuration if the app has not mongodb configured