Fix a problem with removing hyphens in empty titles, (a patch from Matthew Gibson).