Fix roothash check logic in metadata community.