[s2a_date_picker] Fix for empty date values

Fix javascript code to correctly handle situation with empty fields.
Without this patch when you create a new object with s2a_date_picker field
on form submit javascript code always set value of field to the current day.