This warning should prevent the user to normalize a Mexican hat kernel or any other kernel which sums to nearly zero. But your' re right this number is kind of arbitrary. Actually it should depend also on the size of the kernel...