adjusted extract_locale_from_accept_language_header
check for nil on request.env['HTTP_ACCEPT_LANGUAGE']
pending test for HTTP_ACCEPT_LANGUAGE