CORE-549 Script error when closing help dialog