Fixed crash when clicking download button on empty selection