Don't die if there's no signature.

This adds a check to make sure `signature` is defined before
trying to use it.  This should resolve issue #1.