Correctly convert null objects to ContentValues in OptionalTypeAdapter