fix hasardous crash when scanner found a result before video preview fully opened