Fix typo in rules.js, noticed by NoQ. Closes ticket:3857