Bugfix: fixed possible null pointer exception when wiping all items