Update GraphDatabase.js

Fixed errors parsing from blank database