[runtime] Fix a regression caused by a7d26d482273950d8435810b571603f1ae300082.