add CommonVariables when error on saveNode occurs

update NodesController.php