Regenerate sys_uuid if its empty

(cherry picked from commit d48167bde31c68f98811768d9a6c367a8628e6c5)