Fix NPE: getBuilds() should check that .getItem() does not return null

e.g. when someone updates the config.xml directly with invalid `projectName`.