remove blank lines from file before parsing it

Skip error when an csv file has blank lines by removing all of them before parsing it.