BUG:385521 Make sure the gradient pointed to exists.
No idea why it can "not exist" given the assert in the constructor, but somehow it doesn't, so...