Bug 722400 - GIMP segfaults when trying to save a modified, newly created image

If for whatever reason making an uri from the documents folder fails,
return the uri of the home directory.

(cherry picked from commit aabd64e0701b96fbffd9dca2951e3bbe2292326a)