Notwithstanding any other provision of this part, no guardian of the person may be appointed for a minor who is married or whose marriage has been dissolved. This section does not apply in the case of a minor whose marriage has been adjudged a nullity.