fixes issue of parsing breaking on blank files