Enabling jenkins can throw an exception if the jenkins server was

deleted after the enable jenkins page was loaded.