#19830 fix sharing thumbnail from source entity with no thumbnail

no attachment id is returned when sharing a thumbnail from a source entity that has no thumbnail. This effectively clears the thumbnail on all provided entities. Catch for this and return None instead.