Don't error when duplicate with no selection

Closes #294