Make link script work with title-less documents