Simplify condition for adding comma between posts

This changes was merged in the original repo at https://github.com/christian-fei/Simple-Jekyll-Search/pull/6
Merge pull request #83 from javiercejudo/patch-1

Simplify condition for adding comma between posts