fix #1260: null context crashed getThumbnailForWPImageSpan

fix #1260: null context crashed getThumbnailForWPImageSpan