Fixed the instanceof check in WPHtml to use WPImageSpan. Fixes #798