Inconsistent number of reviews when clicking `optimize`

fsrs-rs’s smooth_and_fill may return FSRSError::NotEnoughData, which turns into the 500 error.

I will update the progress code to clear out the old text at the start of an operation.