Update avatar.js

On the handleDrop function check to see whether "file" is defined