On the validity of the Einstein relation for disordered systems