Check for item ID > max ID in game_actor

This prevents 999 stats bug which affected the battle.