Fix contributed by @stevesouth fixing asynchronous Jasmine tests support

This fix does not have any tests associated with it as none were provided, but is useful none the less.