The id of the first node that is found is returned.