I've heard of some dogs that do this when their stomach is very empty. Try giving a little snack at bedtime and see if that works.

What is Cookie's regular feeding time?

Mary