Fix ConcurrentModificationException on BackgroundDetectionObserver