Revert "Fixed 'Bug 11380 - Editor closes immediately after removing file"

Fixes 'Bug 11937 - Deleting a file from a project no longer automatically closes the file if it is open'.

This reverts commit c2ef3c8a238de53180acb77881dbfc1e72c1d374.