Fix warning when saving documents with empty file names.

"QFileInfo::absolutePath: Constructed with empty filename"

Change-Id: Ib5d82681aafee54c309c2beb31c534a26e791737
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>