Fix NoReverseMatch template error on index pages.