mss2: do not try to read too many palette entries