viewer: Improve error handling when loading a non-existent file
viewer: Improve error handling when loading a non-existent file

Remove some duplicate warnings and error messages. Use g_autoptr where
appropriate to simplify memory management.

pwithnall/dunfell,pwithnall/dunfell