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.