Check clipboardData exists before accessing it

Bug fix for browsers which don't have an event.clipboardData
property. The check is done correctly in onCopy but not onPaste.

Change-Id: I3cdf4c0358aa145dcb70c2c103d08a0002001fd4
Merge "Check clipboardData exists before accessing it"