Eliminate unnecessary null check.