It is a defense to a prosecution pursuant to section 13-3212, subsection A, paragraph 8, if the defendant engaged in the conduct constituting the offense with a minor who is fifteen, sixteen or seventeen years of age and at the time of the offense the defendant could not reasonably have known the age of the minor.