Fixed parsing of `track_scores` in `RestSearchAction`

Closes #2986