Fix for issue in github API where a pull request is successfully submitted, but it throws a 500 error