Instead of indicating gender (or mistaking the gender), the common practice is to use the singular theysingular they, a construct for this precise purpose. It is used "[...] to refer to a single person or an antecedent that is grammatically singular. It typically occurs with an antecedent of indeterminate gender [...].".