base-xml-formatter: properly handle GFile from wrong uri
Summary: g_file_new_for_uri never fails so GFile always has valid pointer. And fix a bug of double unref from D303. Reviewers: thiblahute Differential Revision: https://phabricator.freedesktop.org/D310