Properly detecting unneeded PRs

Trapping error on unneeded PR from github, properly returning
the "unneeded" message instead of throwing error.