Thermally activated phase slips of one-dimensional Bose gases in shallow optical lattices