Fix #9609 (crash with WFS)