[dialog addon] Make dialogDiv accept a detached DOM node in addition to a template string