The labelRenderer function as used in EntityRenderer can also return nil, the functions calling need to handle that. Also it should be documented.
Example errors:
Lua error in EntityRenderer.lua at line 148: attempt to concatenate a nil value.
Lua error in EntityRenderer.lua at line 67: attempt to concatenate a nil value.