LPS-42347 We don't need to add the type when fileVersionId is not bigger than 0. If we don't add this the thumbnails will remain there even when the document is deleted.