fixed #368 - check that a link still exists after click for processing further