lib-index: Crashfix in some cases when flags unexpectedly weren't changed
lib-index: Crashfix in some cases when flags unexpectedly weren't changed

LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot