[FIXED Jenkins-23749] NPE when view contains no builds.

If there are no builds in the pipeline (or you delete a folder with a pipeline in it), it will throw a NPE.