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

@rhelmer r?
@peterbe makes sense - I don't see where that's being fixed though, only ```{% block page_title %}``` seems to be changed? Is this patch missing something or am I ? :)