Prototype Ajax upload bug when submit before upload complete