Logging of null values.

Added a condition to check for null values when logging class names. Now it's possible to do:

```python
console.log(None)
```
or
```js
res.console.log(null)
```