Handle invalid property values in Switch node
Fixes #404