Fix remove_port for when node exists but URL does not