Fixing template load (refs #19048)

jQuery.when requires a Deferred object, which load_templates() is not,
passing the .done function as callback for load_templates instead.