For the purpose of this section, aggrieved person does not include a government agency, financial institution, or other entity that purchases, guarantees, or insures a loan secured by real estate, and does not include a licensee unless (1) the licensee is acting in the capacity of principal in the sale of interests in real property owned by the licensee; or (2) the licensee is acting in the capa