The following fails in IE8, but works in real browsers

```
<div data-bind="with: currentItem, visible: currentItemState() === 'view'">

    <!-- ko if: resource().versions().length -->
    <!-- ko with: resource().versions()[0] -->

    <div style="margin-top: 15px;" data-bind="visible: error()">
         .....

    <!-- /ko -->
    <!-- /ko -->

```

Basically I'm getting `property 'error' is null or undefined` which means the `with` (and `if`) bindings aren't working properly. This is probably because IE8 is stripping the comments out, which I've seen it do in other contexts, like within a `<select>` node, but I've never seen it do that in a place like this. 

Is there a good way to fix this (without working around the problem by changing my html structure)?