[sr-dev] git:6.0:a5ac9e04: core: more checks for extract_candidate()