Make sure we bound the selection of maildir-folders.

  There are cases where changing folder would segfault.