PdfViewer: Missing images when handled InvalidCastException is thrown trying to get solid stencil color from Pattern graphic state color
The current implementation relies on the graphic state color to be always SolidColorBrush. However, it may be other color type and InvalidCastException is thrown. This results in missing content.
Available in LIB version 2017.1.410.