remove an inappropriate `!`

the logic was backwards.
Merge pull request #5804 from minrk/invert-callback-clear

remove an inappropriate `!`