fix: Saving object with a pointer field set to undefined
throws error for Postgres
#9147
+29
−0
undefined
throws error for Postgres
#9147