Hardened the onPaste logic to be able to survive instantiation of now removed plugins in line with the recent changes to Graph.deserialise().