[runtime] Fix a regression caused by a0afa38296b8a3b0382bf34ce777357d2553c0f0.
Merge pull request #893 from antoniusriha/fixregression

[runtime] Fix a regression caused by a0afa38296b8a3b0382bf34ce777357d2553c0f0