fix ignoring of null / undefined. Closes #44