Explicitly set the value of 'collapsed' for #8208

For #8208. @peterflynn or @TomMalbran 
I went ahead and changed it to:

```
        resultInfo.collapsed = !!resultInfo.collapsed;
```