Check for zero builds count and if so, set pages count to 1.
Merge pull request #468 from FylmTM/bugfix-project-view-pages

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