Fix a crash with invalid matrix element

Fixes fontconfig/fontconfig#140
2 jobs from issue/140 in 5 minutes and 56 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #87637
shared-build

00:05:56

passed #87638
static-build

00:04:14