SMX4NMR-307 - org.apache.servicemix.nmr.osgi can throw an exception when shutting down

git-svn-id: https://svn.apache.org/repos/asf/servicemix/smx4/nmr/trunk@1441026 13f79535-47bb-0310-9956-ffa450edef68