h264: correct the check for invalid long term frame index in MMCO decode