Fail safe permalink_by_title() function