Fix crash in InlineQSDNode

The `template.Variable` constructor throws if passed None, so guard against it.
Merge branch 'schema-migration-rebase' into student_reg_redesign