Methods to filter out spurious disturbances in continuous-wave searches from gravitational-wave detectors