Fix block warnings when block is inside "code"

[fixes #1589]

A layout like:

```jade
if condition
  block myBlock
```

should not emit a warning, since `myBlock` may be used.