fix #15: no builds in a project breaks popup.

* also added template helper for empty projects view so the empty
projects message would show up correctly.