MapDatabase: drop ways with invalid coordinates