Check file is defined

On the handleDrop function check to see whether "file" is defined.
This fixed a console error I noticed in Chrome 24.