For purposes of this title, it shall not be considered evidence of abandonment in any child custody or visitation proceeding if a parent flees from domestic violence and temporarily leaves the child behind, as long as that child is not left in immediate danger of serious physical injury.