Don't use the autosave filename from unsaved documents as the proposed saving name
This also checks whether the Pictures folder really exists, and
uses the home folder if it doesn't.
CCBUG:421933
(cherry picked from commit d2047f00bdcf0ec2d56ff571a168e61c83b8a78b)