On the inverse isotope effect in superconducting (Zr, Hf)-(H, D) system