Fixes #1263: Fixed the issue that Gii and Debug modules might be affected by incompatible asset manager configuration