Fixed incorrect null check.