Hardy's proof of nonlocality in the presence of noise