Added valid paste target detection in MenuPasteOperation