Fix segmentation fault in Phalcon\Validation::getValue()