Be defensive with threshold results and maintain backward compatibility with old threshold implementations