remove empty lines from result set

shorter filter as suggested by @Pomax