Making sure WebJobs urls can be built when there is no http context.

since the class itself is generic it doesn't really makes sense to make it a static.
so we can put it in a different class but it seems too much for this small thing