Influence of hadronic resonances on the chemical freeze-out in heavy-ion collisions