Fixing segfault when a wrong parameter is passed to Mvc\Collection::_getResultset