fixes bug 1017077 - Only make links to home page of valid product names

@rhelmer r?
So this test seems to make sense and pass, but I see other links in the template that use the product name other than the home page (such a to ```report/list```) - I am not seeing any link to the homepage as referred to by comment 0 in the bug in the ```report_index.html``` template anyway.

So I am confused :) I am having trouble logging into errormill to see the exact stack trace, that would probably help me understand the problem.