Entities without entity_data will crash the catalog_service and block the game start. At v767

Checking the error below, I noticed that it is calling entity_data[‘stonehearth:appeal’], but if the entity does not have it, it will error. I have an object that does not have that in my mod.

2017-12-15 01:05:37.034717 | server |  0 |                         lua.code | -- Script Error (lua) Begin ------------------------------- 
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    ...nehearth/services/server/catalog/catalog_service.lua:263: attempt to index local 'entity_data' (a nil value)
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    stack traceback:
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    	radiant/modules/commons.lua:46: in function 'report_traceback'
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    	radiant/modules/commons.lua:57: in function <radiant/modules/commons.lua:51>
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    	...nehearth/services/server/catalog/catalog_service.lua:263: in function '_add_catalog_description'
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    	...nehearth/services/server/catalog/catalog_service.lua:170: in function '_update_catalog_data'
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    	...nehearth/services/server/catalog/catalog_service.lua:125: in function '_load_catalog'
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    	...nehearth/services/server/catalog/catalog_service.lua:38: in function 'initialize'
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    	stonehearth/stonehearth_server.lua:78: in function 'create_service'
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    	stonehearth/stonehearth_server.lua:132: in function 'instance'
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    	radiant/modules/events.lua:291: in function <radiant/modules/events.lua:285>
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    	[C]: in function 'xpcall'
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    	radiant/modules/commons.lua:66: in function 'xpcall'
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code |    	radiant/modules/events.lua:285: in function <radiant/modules/events.lua:251>
2017-12-15 01:05:37.035225 | server |  0 |                         lua.code | -- Lua Error End   ------------------

Edit: Maybe this is not correct, but I fixed in my machine by replacing:

  local appeal = entity_data['stonehearth:appeal']
  if appeal then
     catalog_data.appeal = appeal['appeal']
  end

with:

  if entity_data then
     local appeal = entity_data['stonehearth:appeal']
     if appeal then
        catalog_data.appeal = appeal['appeal']
     end
  end

in the catalog_service

Thanks for the catch. Will be fixed in the next unstable version.