That cash is virtually meaningless, though. It basically doesn't represent any value unless a person withdraws it. The only people potentially getting screwed here are the ones who tried to make a withdrawal and don't receive any cash. Hopefully the machine sensed it was empty and didn't deduct fromt their accounts.
The bank didn't lose any money. They'll just have more printed to replace these. The petro dollar is a meaningless fiat.