Env variable $CI_PROJECT_DIR empty on shared runners

I noticed today that $CI_PROJECT_DIR environmental variable is empty when the build is run on shared runners (eg. shared-runners-manager-3.gitlab.com (#44028)). I use GitLab.com and it worked before. Is there anything in .gitlab-ci.yml what can affect this variable? Thank you.