prevent closing modal during upload

http://manage.dimagi.com/default.asp?113695
https://github.com/dimagi/MediaUploader/pull/4