Fix #11510 graduated renderer causes crash