Update Hal Plugin to support entities with $id = 0

Update Hal Plugin to support entities with $id = 0, these were currently not rendered because of a wrong if-clause