Modified url_for method to check if a locale is alreaedy set