Edit > Paste as New Layer: create Undo entry if the layer was added successfully

Thank you to Zhu JinYong for reporting!

Because this action occurs outside the software processor (because some
non-standard work is required to parse the clipboard data, create a temp
file, then double-check our work afterward), Undo data creation wasn't
happening automatically.