Check if item has item meta before trying to access it.
Added some debug