Fix #9532 (node tool crash on a layer with a feature without geometry)