A proof-of-principle experiment of eliminating photon-loss errors in cluster states