quickfix for issue #1461

Fixes #1461.
Here, too:

```py
if 'math' in child.get('class', []):
```