Fix an error in the lua api when the entity has no label or sitelink

If an entity has no label the entry "labels" doesn't exists in the table
and made the script fail. Idem for sitelinks.

Change-Id: I220996203ac88890ea8a2c50193e0932a907ddcd
Merge "Fix an error in the lua api when the entity has no label or sitelink"