[sailfish-filemanager] Stop hanging application when creating new nonprivileged folder. Fixes JB#51778
When creating a new folder the dialog box remains and the application hangs after the button "Create" has been pressed.
The reason is the infinite loop in
Stopping this loop after processing all events will prevent application from hanging.