qmlglsink: fix another resize case
If qt asks us to redraw before we have both set a buffer and caps we would attempt to use the new caps with the old buffer which could result in bad things happening.
Only update caps from new_caps once the buffer has actually been set.