Test for multi/single linestrings directly; relying on try/except for OGR exceptions apparently doesn't work as expected