My mantis has done this several times while I have been handling her, I thought maybe it was just the mantids way of getting rid of excess fluid. Wouldnt it aim the fluid at the threating stimuli if it was a defense mechanism? As far as I can see it just releases its load in any old direction.