[Fix #7405] Graduated renderer: Feature count 0 with scale or rotation

Please review (it's a really small change)