Phase transitions and resilience of the magnetic dual chiral density wave phase at finite temperature and density