dwrite: Fix invalid parameter handling in GetGlyphIndices().