fix getVertex with blank vertex id