Modding the AI is not possible without the source code for the mod, so unless the team want to share that, that's not a fix the community can make.
I'm not sure how giving the mounted flag to a unit that is not mounted will affect it, I imagine it won't change anything unless the unit is actually on a horse, but I can test it out