Revert "MIFOS-6077: Stack trace appears during switching site type"

This reverts commit 05a0a3eb93e339424305d898d6cebace3603ed62.