LPS-39328 Prevent NoSuchGroupException in search portlet

Hi Brian,

When src formatting solr I ran into a NoSuchGroupException because the termCollector returns a curGroupId = 0. @mhan810 told me to add this fix.