check typeof Promise against string. Fixes gh-6