Prevent match dragon's idx from being NaN

[#54754898]