Further verification of input data used for loop
Further verification of input data used for loop

Coverity Scan still not happy.  This patch should make everything
a little bit better.

Signed-off-by: Joachim Nilsson <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>

troglobit/mcjoin,troglobit/mcjoin