Prevent a crash when updating pootle-terminology.po

When the file does not exist on disk, accessing attributes on
self.file will fail. So check for that in advance. If this happens
on anything else than pootle-terminology.po, log a warning.

Fixes #3254