Adding in logic to test to see if a navigation item title is set before setting the html title attribute as the title.