Fix #108, return 404 in last build view

If a project does not exist or is not in permitted projects the view
should return 404