Fixed const correctness of GraphGadget::getNodePosition()