The official website for The Settlers of Catan

Question about General Questions Placed cards - What happens with a card whose placement requires another card if the required card is removed afterwards?

Answer

The card stays where it is and retains its effect. Requirements must only be met when playing the card; afterwards, they are irrelevant.