Fixed a segmentation fault resulting from dereferencing a NULL when trying to access parent nodes in semantics parse tree.