Bug 18067 file extensions on save

Please use fileName.empty()