Modify has_charge_of_node function - 'true' is returned even if it detects an error