Fix bug with accessing vchData[0] when vchData is empty.