Fix title in base template

This fixes the title in the base template which (previously) could end
up as an empty string.