Fix compilation warnings on unsigned comparisons.

Fix two unsigned comparisons to zero or more being always true. Clang
won't compile this with -Werror.