Avoid a crash when handling invalid arguments

Do not try to dereference a NULL ETCore pointer.
Do not unref GFile in GApplication::open handler

https://retrace.fedoraproject.org/faf/problems/1504917/