I say, with Allah's guidance: It remains pure and does not become impure; due to necessity. See: Maraqi al-Falah p.39, and Allah knows best.
If the previous answers are not appropriate, please send your question to the Mufti via