Removes null values from an array.