Fix IE8 error on window resizing

Hi,

Noticed that in IE8 on window resizing expressions like

```
t.container.parent().closest(':visible').width()
```
might return `null` value that triggers errors. To fix it I added `not null` check additionally to `!= 0`.