NME shader fails to compile with receiveShadows

Took me a while to figure out what was going on in my scene vs. the NME editor where the shader compiles fine.

Turns out, an input was missing that’s used by shadows. I was able to get it to compile by hooking up the View matrix.

My question is, should this fail gracefully or fix itself in the case of a NodeMaterial, instead of failing to compile?

Example of failing shader (see console)
https://playground.babylonjs.com/#9B0DNU#40

It’s a bug on user side, so I think the current behaviour is ok as it should not happen in finalized application.