Fix problem of invalid datetime metadata coming from a device.

1) Catch errors in the wireless device driver
2) Return None in the json_codec if a date cannot be parsed.