Do not add empty elements in formatResults