Fix EZP-20998: Undefined var $fieldsToReturn in ezsolr.php

# Description
A variable was not defined in ezsolr.php.
I applied Seiji Okamoto's patch (from the issue tracker) and changed a little bit the CS.
I am not an expert of this piece of code so reviewed by ezfind experts will be highly appreciated.