Assertions for adminhtml menu

- removed obsolete lines
- added correction for magento.......
- added early break when no module found
prevent messed up indexer