Add check for exceptions in inventory extractio

https://github.com/MinecraftPortCentral/MCPC-Plus/issues/582