Force boolean conversion for eventFilter methods

This avoids some nastiness if a function returns something else like
None.