fix crash because of empty self.data.items

When using the code snippets you gave me (https://github.com/rubenwardy/smartfs/issues/1), minetest crashes because self.data.items is nil. This should fix it.