Ignore empty path elements in snap and wai drivers

For example;  is now parsed as [v1, users].

This already worked this way in the happstack driver