Improve migration of new attachs when attachs have no title set

refs #454