Update ModuleCompiler.php

Prevent blocks from being undefined.