Fix to allow projects and jobsets to be deleted if they have builds

... be deleted through the web front-end, unless they have no builds