Make RelationProperty writable and optimization when dealing with empty relations (ObjectId is None)