NMS-7118: Use correct xpath expression to identify 'Edit and Clone' foreign source button
NMS-7118: Do not clean up if selenium was not initialized correctly. Fixes NPE.