Make / not enter endless reduction loop on obviously-bad input

Signed-off-by: Michael Livshin <dev@cmm.kakpryg.net>