Fixes peripheral advertising not starting when switching from not advertising to advertising.