Handle double trapped chest inventory. Fixes BUKKIT-3772

Remapped by Srg2Source from Bukkit/CraftBukkit@e46c0071be284040326f6473c5e59b425e811e77