h264: fix detection of optional trailing PPS elements