Fixes NRE for empty results