Fix exception in Firefox after paste files

This PR tries to fix exceptions from Firefox which doesn't fill the attribute items properly and the access to the property `items` is undefined. The previous check `clipboardData.items !== null` was true and was causing invalid access to the items array.