Fix crash when tryingto paint before video is available.