Fix corner case when using fr_cursor_remove and fr_cursor_next_by_da together