No it wasn’t, I read through that article and it doesn’t mention at all that it was made that way (as in made like a castle) because of this strange phenomenon. The article says it was built like a castle to lure in rich customers (as the article puts it) and that they used the turrets (circular pillar looking things that you see each edge of a castle) as a place to hold patients because it was easier to clean a circular area and it was easier on the nurses to go around and treat the patients.

TL;DR: Cleaning curved rooms is far easier than cleaning rooms with corners and nurses could check on patients very quickly in a circular room.