Add merge all, and fix the empty item bug

I wanted to add 'Merge all' and second commit delivers that. While testing, I noticed it's possible to copy empty items to the list, this happens for example when I undo a write in the text editor. First commit adds a check to early return from that case.