Fix duplicating files after drag-n-drop upload

Bug description is here: http://sourceforge.net/apps/phpbb/kcfinder/viewtopic.php?f=5&t=271