Easy enough fix: change 237 to

```
if self.config and self.config.get('sourcemap', None):
```