Fix issue with upload modal when no internet connectivity.
Fix #10.