Making writer update more robust.

I was getting errors in scans where it was crashing out if some of
the content list was empty, so I've fixed it so that it will not
try to include Nones in the content.