Check for zero builds count and if so, set pages count to 1.

Fix NotFoundException if there are no builds for project.