Catch nulls in signature check

Fixes #126