Fixed crash when pokemon start riding minecarts