Fix pass var by ref error in modX::getInstance()