Fix #7542 (crash in vector layer properties for geometryless layers)