Fix crash in InlineQSDNode

The `template.Variable` constructor throws if passed None, so guard against it.