Handle problem when payload is a string.

In particular when determining whether a pull request is from the
same repository.