minor correction made in get_preferred_lang templatetag