Stationary Josephson current in junctions involving d-wave superconductors with charge density waves: the temperature dependence and deviations from the law of corresponding states