Ensure typehead hasn't ben destroyed before rendering suggestions

Fixes #218.