Thouless pumping in disordered photonic systems