No. The situation is irrelevant. It is illegal to carry anything for the purposes of self defence...Unless you find yourself in a situation where you really need more than your hands to defend yourself!
Using something that happened to be close by, or that you weren't carrying for the purposes of SD i.e. mobile phone, is a different matter however.