Avoid (some) exceptions when inserting swf files via drag’n’drop

Fixes #1.