vpxenc: fix crash if encoder produces unmatching ts
If for some reason the encoder produces frames with a pts higher than the input one, we were dropping all the video encoder frames and ended up crashing when trying to access the pts of a NULL pointer returned by gst_video_encoder_get_oldest_frame().
I hit this scenario by feeding a decreasing timestamp to vp8enc which seem to confuse the encoder.
This is a partial backport of !2405 (merged) fixing the crash.