Fixed possible NullPointerException when Bundle::getSymbolicName is not set
Changed if clause
Merge pull request #2491 from noctarius/osgi-fixed-2489-maintenance

Osgi fixed 2489 maintenance