Filtering empty strings when getting flat values list of a field