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 permissible to move a grave from its current location to another place, for example, from a garden in a home to a cemetery, knowing that the grave has been there for a long time, about fifty years?
It is not permissible to move the deceased from his grave, as this may result in breaking his bones and violating his sanctity. Such actions are not allowed. And Allah Knows Best.
What should a sick person, who is incapable of fasting, and who didn`t make up for missed fasting days, do?
One who has missed fasting days is obliged to make up for them, but if he/she wasn`t able to because of an incurable disease , or old age, then he/she has to pay a ransom which is feeding a needy person for each of the missed fasting days. And Allah Knows Best.
What is the ruling on praying behind an undesirable Imam?
It is permissible to pray behind an Imam who is undesirable for committing religious violations, and it is disliked for such an Imam to lead the prayer. Still, If he was undesirable for a personal, or a worldly matter, then such argument doesn’t hold water. And Allah Knows Best.