Do not crash when trying to generate thumbnail from a video file.