Fix possible crashes on db-update

* fix crash in strange formated setPropertys
* fix crash if created_at/updated_at is null(set current date in this
case)

Change-Id: I9cb31b0b2441fe95c53116e0474d97e2bbe6d662
Fix script
Merge commit '88565d29ddf23b0e438947902bb14ccf7d21c65a'