If the configured BitBucket username cannot access the repository being polled, the check looks successful but it will not find any PRs. `set -o pipefail` in the check script may fix this. That will make commands in a pipeline cause failure like `set -e` does.