Check filesystem before accessing it in UI.

Fixes #377.