Piano: fix a possible null pointer dereference of node