Handle the case that expected value is null