SUP-673:Avoid image resize failure on error "no pixels defined in cache"

http://www.imagemagick.org/discourse-server/viewtopic.php?f=6&t=21095