Handle nil dates

Nil dates are being written to unidata as 31 Dec 1967. This fixes that issue.