Handle double trapped chest inventory. Fixes BUKKIT-3772

Remapped by Srg2Source from http://github.com/Bukkit/CraftBukkit/commit/e46c0071be284040326f6473c5e59b425e811e77