Add checks for if an ItemStack has a null item. This isn't a full fix,
but should catch 90% or close to it of the isses for bug #1414
 A partial fix for bug #1414. This should catch 90% or so of the cases.