avcodec/tscc: Move reading the side data palette before other checks