fix(valve): don't crash on empty hashes