Also makes sense if you think about it; little opportunity for sleeping was likely an indicator of external stressors during our evolution, so up-regulatibg energy intake during those times seems reasonable.
Anecdotally, I can also attest that I'm much more likely to want junk food if I haven't slept enough. Just do a quick google search for "lack of sleep hunger" and you'll see tons of articles and papers popup.