Fix for Kudu Issue #752

I didn't add in tests for this because updating to TypeScript 0.9.1.1 would give a build error and act as the test which is how I found it. If you would like another PR which includes those changes I can submit that as well.