Fix message dialog not shown when the user tries to create a folder but a file...

Fix message dialog not shown when the user tries to create a folder but a file with the same name exists

Fixes issue #2604
Status Job ID Name Coverage
  Build
passed #668466
debian-meson

00:10:27

passed #668463
fedora-autotools

00:12:23

manual #668464
allowed to fail manual
fedora-distcheck
passed #668465
fedora-meson

00:08:48

manual #668468
win32 allowed to fail manual
msys2-mingw32-autotools
passed #668467
win32
msys2-mingw32-meson

00:18:00

 
  Docs
passed #668469
reference

00:15:59