constrain geometry check to way column

When more than one geometry column exists in a table, the sanity check
was failing when running osm2pgsql in append mode. This constrains the
number of rows and srid check to the way column specifically.
Merge pull request #176 from rmarianski/constrain-geometry-check

constrain geometry check to way column