Fix a bug where closing PRs threw an error.