Fix #11510 graduated renderer causes crash: added check for geometry


Funded by ItOpen - http://www.itopen.it