Catch attempts to download or delete without selecting any collections

Fixes #552. Also fixes a bug a flash of type 'warning' was created. 'warning' is not a flash type and would not get displayed in the template