[OTLayout] Protect against out-of-range lookup indices

Filter them out when compiling map.