Array index out of bounds exception occurred when creating protection domain since it was doing a BundleImpl.toString() before adding the module to the bundle. (FELIX-1170)