A Powys primary school on the border with Shropshire has been taken off the school closure list, for now.