Add null check check on world for item lifetimes
Fixes: #251