PdfProcessing: InvalidCastException is thrown when parsing dictionary end without having dictionary start
Although this is not a valid postscript scenario we should not throw exceptions and we should instead skip the invalid dictionary end characters.
Fix available in LIB Version 2018.1.312.