Random walks of a pair of annihilating quasiparticles on defected chains