Fix issue with AJAX request fired in ondrop handler