Fix crash in verifier.js

This prevents the verifier process from crashing if the signature
is not a valid hex string.