Fixes bug lp:1234007, out of index crash for handling media_codec_layer output buffers list.

Origin: vendor
Forwarded: no