Fix url generation error on hook invalid create

On creating project hook with invalid url I get this error
![j90isca](https://cloud.githubusercontent.com/assets/1488195/2625621/6e20130a-bda2-11e3-8ee4-02680819d189.png)