Fix issue described in Bugzilla - 1074618. Resources not loaded when using a fragment bundle
(cherry picked from commit 93d91fd1c269f74dccd36400cda6c2a7bbb6e659)
Cleanup the code. Remove bundleUrlPrefixLength which is not required when we extract from the URL the path using url.getPath
(cherry picked from commit 82c8801ddafe5843db97db50bd4037b8f5b1eb30)