Fixed possible NullPointerException when Bundle::getSymbolicName is not ...

...set

Fixed #2489