In determining whether a person has committed an offence against section 24 or 25, it is irrelevant whether or not the person made an assumption about the race or religious belief or activity of another person or class of persons that was incorrect at the time that the offence is alleged to have been committed.