Adds check for current cookie value

Language selection was not remembered when translate parameter was not
present. This checks the cookie value if the translate URL parameter is
missing.