Well since it was a female prostitute I'd say it wasn't gay at all.
Though I will agree prostitution shouldn't be a crime which requires the officers to "sample" the goods in order to get a conviction, that runs the line of an ethics violation much too closely.