Treat case where frames are present but empty

Sometimes the first frame is empty so we need to find the first, non-empty frame.