Well a corpse is essentially just an inanimate object, and as such I don't have any ethical/moral issues with this. It is, however, monumentally stupid since these people are essentially representing America over there and since the locals largely don't share my views on the (lack of) importance of dead bodies. In any occupation, endearing yourself and by extension your country to the locals is just as, if not more important than fighting insurgents.