Update signature.rb

return 0 epoch if events array is messed up.