Fix NBTTagCompound comparison with name == null or value == null.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>