minor correction made in get_preferred_lang template tag