modify destroy method: Only remove overlay from DOM if you destroy last kdialog instance