aggregator: fix flow-return boolean return type mismatch