Except of course this a completely notional profit that can't normally be converted into a real profit - because in stressed market conditions, banks find it hard to borrow a bean on markets (a big hello to banks in Greece, Italy and France) and aren't exactly flush with cash with which to redeem their debts.
BBC: When banks profit from bad news