Updated stopAdvertisingBeacon method to handle crash when calling it whe...

...n not advertising or CBPeripheralManager is off