handle nulls correctly in curator persistence