Fix base-app segmentation fault

See https://github.com/phalcon/cphalcon/pull/745#issuecomment-20303312