Writable nested serializer - fix setting nested serializer to null

#750