Bug fix: index out of range error.

This commit fixes the error caused by computing the inner product of a
feature vector in which a feature id is exactly same as the size of
the weight vector in the classifier.