Tighten up the "is jQuery promise" test.

Fixes #34.