fix error case with search results
fix error case with search results

frankrousseau/cozy-emails,frankrousseau/cozy-emails,nono/cozy-emails,poupotte/cozy-emails,cozy/cozy-emails,poupotte/cozy-emails,cozy/cozy-emails,nono/cozy-emails