Use ItemStack sensitive version of hasContainerItem()

Use ItemStack sensitive version of hasContainerItem(), because the non-sensitive version is deprecated.