Bug fix, handle case when cart widget output is empty

Don't try to copy the value if it is undefined, becuase that's bad.