Updated to treat returning a zero-length signed message as an error