Fix containsNull for empty array.