Don't try to save undefined values

Postgresql adapter fails if we try to save undefined as date.

Just skip undefined fields and don't save them.