The flight attendant was wrong, but remaining in their seats and maintaining a respectful, prayerful silence as the casket was retrieved from the aircraft are the more appropriate actions.
Your post pretty much sums it up. The flight attendant is wrong and deserves ridicule for such an asinine statement, and should have just said that it was felt to be inappropriate. That would have sufficed.