For some strange reason Gio exceptions are not catched well: inserted a test to verify file existence before accessing it.