Fix for #148.

Only `rescanDetections` when there is a `recovery` associated with the `deployment`.