Fallback to the |Dummy| Pattern when we fail to parse a Shading Pattern (issue 5509)

Fixes #5509.

/cc @yurydelendik