Maybe I misunderstand the problem but can't you change those lines with just blanks to empty lines?
Sure I can remove the whitespace characters. But I'd rather simply not have to care about them (but this is filetype-dependent because for some filetypes this really could be what I want).
I was just wondering if there maybe already is a (buffer local) option to do this.
Regards, Thomas.