The ground state of an antiferromagnetic superconductor in the presence of a homogeneous magnetic field