Delete complete div onclick even if error message (closes #2561)