Fixes #1255: typecast empty string to null for non-string DB columns.