bugfix: dump nil instead of empty string

ActiveRecord serialize postgres bug:
PG::InvalidDatetimeFormat: ERROR:  invalid input syntax for type time: ""