ENH: add missing value handling

Fixes #1.