Added check for null node in postorder coalTree traversal