fixed #2 Database conversion templates exception on required null fields.