Fix crashes in InlineQSDNode

Guard against program_variable being None, since template.Variable
throws if passed None. Also, assign url properly if program is None.
Merge branch 'schema-migration-rebase' into student_reg_redesign