I have noticed such visual bugs, but it was never a real bug that caused me to lose anything because refreshing would make the coins/unopened luckyboxes reappear again.
infact, you can even go on negative coins often times when opening luckyboxes, by, say, recycling boxes and not refreshing the page, so the coins didnt appear back yet but you can open more boxes.
Anyways, I think there's a secondary check to see if you actually received an item before coins/unopened lucky boxes are deducted, so make sure you actually lost something.