Fixed minor issue with completed field.

Printing functionality wasn't checking whether the completed field was
NULL or not.