Are you aware of any such case? In the two examples I gave, one was said by Bonapartists who were arrrsted by the Royalist police. In the other, John Peltier was prosecuted in the British courts. I would doubt someone would be prosecuted solely on the basis of calling Napoleon "le petit caporal." I would also doubt, however, many had the nerve to use it to his face.