Fix bugs with Jenkins' callback support

Already deployed and tested this on Heroku.