Is it appropriate to put polyethylene between hardwood and subfloor?
It is a moisture barrier. See  
Moisture Barrier and Underlayments: Don’t Leave It Out!  for a little more explanation. However, in your case that appears to have been an unnecessary expense. I doubt it would hurt anything except your wallet.