MAINT: set attributes as last action in DictVectorizer.fit

Prevents getting a half-initialized transformer when an exception occurs.