PDI-3723 - Repository Explorer - Missing "Are you sure" warning dialog when deleting an empty Folder from the Repository

The patch contains a fix and a small refactoring