Assert that extracted key is not null.

Closes #166.