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

e.g. when someone updates the config.xml directly with invalid `projectName`.
I can make another PR for that. This change takes care of that NPE and that's it.