Issue #2263365 by donquixote, longwave, alexpott: Second loop in module_implements() being repeated for no reason.