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