make sure ActiveXObject exists before accessing it - fixes #1187