Ignore paste event when clipboardData.items is undefined.