fix access to unavailable reference picture in broken streams