Fix behaviour of #oauth.hasScope when used in or expressions

Because `#oauth.hasScope` will throw an exception instead of returning `false` by default, the condition cannot be used in `or` expressions where the first expression fails.