0004424: There should be possibility to extend same class more than one time in one module. Some logic change and method isActive() refactoring. (cherry picked from commit b1cd5fa)