Fix sscanf return in StringItemNumberLess.

sscanf may return -1. reported by valgrind.
Merge pull request #1619 from sigurdteigen/master

Fix sscanf return in StringItemNumberLess.