Fixed the bug where the upload/download media progress dialogs didn’t get dismissed