Add empty vocabulary checking for DictVectorizer

Add corresponding tests for DictVectorizer