Fix error when installing extensions from Network Admin
Merge pull request #492 from x-team/issue-491

Fix error when installing extensions from Network Admin