[AS7-6855] Bundle revision not removed when not in use any more

https://issues.jboss.org/browse/AS7-6855
### Contains #4347