Notwithstanding any provision of sections 4a-60a and 46a-81a to 46a-81p, inclusive, the Commissioner of Children and Families or a child-placing agency may consider the sexual orientation of the prospective adoptive or foster parent or parents when placing a child for adoption or in foster care. Nothing in this section shall be deemed to require the Commissioner of Children and Families or a child-placing agency to place a child for adoption or in foster care with a prospective adoptive or foster parent or parents who are homosexual or bisexual.