Fix exception with while sparkline data creation if search returns no hits