[FIXED JENKINS-4934]

Fixed code so plot plugin will not plot or save plot data for deleted builds.