Check filesystem before accessing it in UI.

Fixes #377.
Merge pull request #380 from vmarmol/release

Check filesystem before accessing it in UI.