I am a bit sceptical of that story, given how which war it was keeps changing whenever I hear it.
Looking it up a little the only consensus seems to be that if it happened it happened in the last war Liechtenstein was involved in (The Austro-Prussian war). This being the most consistently mentioned war and the case where they actually give a location where they served and why they didn't suffer any casualties.