Fix a write out of bounds in splitvertical gradients (Bug 3612)