Bug 850198, Fix null pointer checks on clipboardData when clipboard events preference is false, r=smaug