FAIMS-521: fixing bug with loading popup not being destroyed properly