Remove a trailing 'and' condition from the detect master task