Fix for Gates with ItemStacks with NBT data

This shouldn't break existing gates in world.
I tested it in my dev environment and it worked. Could anyone else can test this as well?