Fix setting foreground scan period per https://github.com/RadiusNetworks/android-ibeacon-service/issues/17