Fixing bug in Phalcon\Di\Service::resolve