Fix #11510 graduated renderer causes crash
Merge pull request #1666 from elpaso/bugfix11510

Fix #11510 graduated renderer causes crash