Update avatar.js

On the handleDrop function check to see whether "file" is defined
Merge pull request #1 from jbate/master

Check file is defined