check for IsMagickInstantiated

to differentiate between GraphicsMagick and ImageMagick
compat with GraphicsMagick-compat

Closes https://sourceforge.net/p/pd-gem/bugs/181/