[ticket/11971] Validating not correctly in Spambot countermeasures

This patch added a verification to know if a negative value is entered and correct it if necessary.

http://tracker.phpbb.com/browse/PHPBB3-11971