Fix NullPointerException in HzGraphDao.