qml: fix crash if update video node and frame is invalid
fix some crashes

happens in qml video. don't know why