Check for valid texture coordinate indices. Fixes #7.