Fix condition checking in doPaste.

Hi! Thanks for your plugin, it works!

Looks like your usage of the comma operator in wrong, though. When trying pasting an image in Chrome, an error will get thrown.

Using `break` instead fixes it.