Use goog.isNull in if statements
Use goog.asserts.assertInstanceof to check the getSource return type

See 1499af397d9852eded193a8b06ea9d8bad71a49f
Merge pull request #1517 from fredj/vector-api-drawinteraction-cleanup

[vector-api] drawinteraction cleanup
Make ol.source.Source inherit from Observable