It it possible that GIO may be unable to determine a file's content type or filesize (e.g. due to file transport limitations). This avoids a crash in this case and instead tries to guess the content type. Filesize will stay at 0 though.
Fixes #204 (closed).