Polar bosons in one-dimensional disordered optical lattices