Fix error when checking a null property if it is an array.