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

Fixes #5509.

/cc @yurydelendik 
yeah, I thought that code de-duplication was the main driver. In general Exeption handlers always look odd. I cannot come up with a better solution, just wanted to mention it.