Fix issue when no language specified in url_for and lang present in stash

Hi

Here is a little fix for issue when no lang is specified in «url_for» and lang is present in stash.