fixed fatal for project without failed builds

Error happening for me because $failed[$project->getId()]->getFinished() returns NULL