Fix deserialization after database migrations

because some fields may not exist anymore