hcl: Elem on nil should return nil