While I don't think this is technically a bug, I think it would be wise for the game to not let you axe a chest full of items. The same thing happens if you axe a crafting station that is working on something - you'll lose everything in it.
Best to keep your axe out of your hands while you're around your stations!