Remove extra unneeded null check.