Fix bug with conditions referencing keys outside xPDOQuery::$_class

This problem was introduced in the last commit and will address modxcms/revolution#11203