Bug 1067190 - Handle singular gradient transform matrices in the GFX backend

See [bug 1067190](https://bugzilla.mozilla.org/show_bug.cgi?id=1067190) for discussion.