WELD-1448 Fix Weld-OSGi StringIndexOutOfBoundsException error message while stopping a bundle

see [WELD-1448 Fix Weld-OSGi StringIndexOutOfBoundsException error message while stopping a bundle](https://issues.jboss.org/browse/WELD-1448)