testing if language cookie is disabled

also moved the removal of the default language code to a better place