Show error message if search query tests for NULL using comparison operators

One of our API users made failing search queries testing for NULL using comparison operators.
A log message "To compare a value to NULL, use the is_null/is_not_null operators" would have saved some time understanding what's going on.