I believe I would build the divider as you've suggested, but incorporate a small drain notch in the bottom of the wall. You'd likely lose a little bit of air through it, but not enough to notice.

Otherwise, I think I'd add an additional drain on the "upstream" section of the box.