Don't add empty list items if formatResult return undefined.

Don't add items to list if "formatResult" returns undefined.