[runtime] Fix a regression caused by a0afa38296b8a3b0382bf34ce777357d2553c0f0.