Fix a misused iterator.

This relates to https://github.com/jubatus/jubatus_core/pull/18.