Fix the bug of crash when enter key pressed with none opened YUV file