Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.
Is it true that whatever is dry is pure even if there was impurity on it?
The impure material object does not soil (make impure) anything else unless the impurity is wet and transferable. But, if the impurity is dry or non-transferable, then there is no problem. Fuqaha has stated that: There is no disagreement between Muslim scholars that when a dry impurity touches something dry it does not make the latter impure.
Should nail polish be removed before making ablution?
Yes, it should be removed because it prevents water from reaching the nails.
What should a worshiper who has forgotten a pillar of prayer do?
If he/she remembered the forgotten pillar before offering it in the following Rakah (unit of prayer), then he/she should offer it, and continue the prayer, then offer Sujood As-Sahw (Prostration of forgetfulness) at the end of it. But, if he/she remembered that forgotten pillar after having offered it in the following Rakah, then he/she should offer a new Rakah in its (the one in which he forgot a pillar) place, and offer Sujood As-Sahw.