lwlibav: Fix finding the first valid video frame when it will be output by feeding null packets.

This is a regression in 458cb1aa04.