Raise if lookup_index is None, which would happen only of the lookup referenced belongs to the wrong table. The error message needs to be less cryptic, though. Fixes https://github.com/fonttools/fonttools/issues/1896