Fix a crash that happened when a negative ligature index led to memory corruption elsewhere. (The source of the negative ligature index remains unknown.)
Merge pull request #1901 from fontforge/gpos_memory_corruption_2

Fix a crash exporting to WOFF.