Corrected an issue in Detector_BgSubtractor which would erase blobs prematurely