imapd.c, sync_support.c: make sure we have a dest partition specified before calling functions that require one