Avoid ImportError when selenium is missing.

Also provide a warning message. Fixes LP bug 1197815

Change-Id: Id7ffaa8820eefd216d2258d56736a65ddb2483c2
Merge "Avoid ImportError when selenium is missing."