I accidentally deleted a folder. This folder was the first one selected in the folder popup. Unfortunately this was a shared IMAP folder :-(
The diff adds a first entry "---" in the popup in folders.php so you have to select a folder for deletion first. In folders_delete.php deletion only happens if a folder was selected.