MIFOS-6077: Stack trace appears during switching site type