Fix JSCodeHint tests so they pass when running all tests.

One of the promises the code hinter was waiting for internally was never being resolved because the directory it was looking for didn't exist.  Now resolve the promise even when the director doesn't exist so we don't just hang.
Merge pull request #3821 from eztierney/unittest-bug

Fix JSCodeHint tests so they pass when running all tests.