They always tell you that midnight snacks are supposed to be unhealthy for parents and children alike, so I would just make sure your kids ate enough before they go to bed.
This can be a bit tricky at times, I admit
Best of luck though, and let me know if you can get this worked out!