Fixed misplaced "continue" statements in Module.php