Add workaround for older SciPy rejecting 0-shape matrix

On older SciPy, transform method in DictVectorizer will reject the
input if the vocabulary is empty (https://github.com/scipy/scipy/issues/2127)