Error handling for the case when there are no keys to paste from.