typeFromMember: check for undefined.

Fixes #8.