fixes #4290
Merge pull request #4744 from dotCMS/issue-4290-language-variable-filter-not-working-properly

fixes #4290