fix bug in getting vertices that did not check that the
schema exists.