fix a minor/unlikely race condition

If interrupted just after finding a password but before printing it,
an autosave could occur which when restored would skip over the
password that was just found (regression in 0.6.6)