Fixed a bug that would cause locales to ignore the Accept header

This would only happen if there was a default language set in the
environment