Update ion_extractor.rb

Added code to write the nil windows to a CSV so that they can be compared with and deleted from the input dataset.