Dynamics of ultracold bosons in a disordered optical lattice