Fix segfault in zim_Phalcon_Image_Adapter_GD_check
Merge pull request #1149 from sjinks/image-crash

[BUG] [CRASH] Segmentation fault in Phalcon\Image\Adapter\Gd::check()