Fixed a crash when auto-focus gets run after preview has ended.