Now throw a DatastoreException if the timestamp is less than zero. Fixed NullPointerException when timestamps are close to 1970.