Fix lua error that could occur when leaving PvP

Fix lua error that could occur when leaving PvP instance