Iterate over the redecl chain to find the non null attribute.
Fix param name.