Issue #1513520 by pdrake, plach: Fixed locale_language_from_browser() incorrectly matches invalid strings.