To reproduce:
- Open TemplateWizard;
- start typing anything in the search field;
- click the 'Cancel' button
- the dialog doesn't close, and you get the following error in the Javascript console:
jQuery.Deferred exception: dialog.templateForm is undefined mediaWiki.TemplateWizard.Dialog.prototype.getActionProcess/<@[...]/extensions/TemplateWizard/resources/ext.TemplateWizard.Dialog.js?ebde5:161:5
(I introduced this error in f3d5d6a2eff83aceb8f4aaadecd37ebc1910d321.)