Handle no file selected
Currently it just crashes if a folder is selected in the filechooser. It shouldn't crash and handle this error.
thread 'main' panicked at 'No file selected', src/frontend/mod.rs:135:26
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace