Fix crash in update

1. null check before using graphnode
2. re-enable testcase