Fixed an error in quick menu filter function.

The filter must always return a boolean value.