Interestingly (in the UK) theft requires that the perpetrator have the intention of "permanently depriving" [1] the owner. So at least in the UK this seems like it wouldn't be counted as theft.
https://www.legislation.gov.uk/ukpga/1968/60/crossheading/de...