Fix inline bug with empty child

Fix the bug discovered in https://github.com/willdurand/Hateoas/pull/66