Postgres record null value fix.

It seems that null string was sent as empty string.
While conditions avoided this in most scenarios, it's still incorrect behavoir.