Fix exception when the inventory is not a player inventory
Remove uneeded variables
Address Pet instances existing without owners

Addresses multiple issues, including:
- Possible interference with Mob Spawners
- 'Duplicated' Pets resulting from server to server travel (e.g.
BungeeCord)
- Any PlayerQuitEvent called simultaneously as PlayerTeleportEvent

Relevant issues:
- #37
- #48