Explicitly stop beast from running on top-level modules

Patch for LUCENE-5968