Sorry, I did it wrong.
Testing with a bunch of svg I saw that Radial gradients often reference Linear Gradient Too.
So the best way I found is to simply remove the condition so it always work. Maybe people more aware than me could tell if there might be side effects.
I corrected some other problems in the patch with gradient origin and non significant 0.
Again sorry for my initial misunderstanding.
Sorry, I did it wrong.
Testing with a bunch of svg I saw that Radial gradients often reference Linear Gradient Too.
So the best way I found is to simply remove the condition so it always work. Maybe people more aware than me could tell if there might be side effects.
I corrected some other problems in the patch with gradient origin and non significant 0.
Again sorry for my initial misunderstanding.