I don't know how I'd feel if this happened to me, but as an uninvolved observer it seems very much in the tradition of "old school" 1e D&D. (As T.Vargas mentioned earlier.) The players aren't entitled to the treasure, they have to find it and keep it.
It's the sort of thing that would show up...