support for null results (fixes #29)