Added an error for persisting with non-existing subclass type.