Bug fix for infinite loop problem when auto unregistering extensions due to dependencies
Bug fix for potential crash due to assertion failure