Fix error when installing extensions from Network Admin