[Fixed #946] Allow non-nil checks that are the final expression of a
predicate method definition