Flowerhack/conditional module rendering

This fixes the conditional modules that were breaking rendering of courseware, import/export, etc on stage.

There is no automated test.  Don and I worked to munge my local MongoDB datastore such that it would replicate the failures we see on Stage, and verified that these commits fix the failure.  If we need more thorough testing, I'll need Cale's help :)