Fix for initializing locale when cookie not set.