Throw exception if modules section does not exist