Added support for restarting a pull request with secure environment variables enabled

See issue https://github.com/travis-ci/travis-ci/issues/1301.