Fixed subtle bug when testing for existence of namespace.

I believe that:

```dart
if (this.namespaces[namespace])
```

works in Javascript but will be false with Dart.

See https://www.dartlang.org/docs/dart-up-and-running/contents/ch02.html#booleans. Feel free to reject if I have this all wrong.