Handle null bundle id, tested on iOS8.1/iPhone4S