The altimeter expects a gradual decrease in altitude when coming in for a landing. If the beam is suddenly bounced off the roof of a building and the return time is greatly reduced the system will know it's an erroneous reading and will probably resume reading once it gets a series of appropriately differentiated readings.