WFS: fix segfault when issuing GetFeature on a layer that can't be opened