Prevent calling onBroadcast called twice with SimpleBroadcaster

Backported from master and commit 210f1a905f30c42af42b54e63bcb60bcbfa61d66.