Filter out all null values in the array