We shouldn't try to take a snapshot of a non-visible window! Also, we shouldn't crash if you try to make an IOSurface from a null CGImageRef.
Created attachment 234681 [details] patch
http://trac.webkit.org/changeset/170963