Prevent issues in *corrupt* PDF documents, if the /Resources-entry is not of the correct and expected type.