You aren't covering losses, you're failing to tax gains that didn't materialize. If I fail to get a job, you don't tax me for the income from a job I might have had. This is true even if my reason for not getting the job is really stupid.
Same thing if I give you a million dollar, you buy expensive X thing but the seller goes bankrupt and never delivers anything.
You only ever got to write off you cost basis but you cannot if the cost is stolen.
Yet.