Fixes https://github.com/aspnet/KRuntime/issues/910

@Chengtian @muratg