Preventing multiple iterations
Merge pull request #4353 from karmicdice/patch-1

Prevent infinite loops by rendering a flash element inside a flash element.

Fixes: #4350