Don't limit _getElementsByUIAutomation to the mainWindow

Fix https://github.com/appium/appium/issues/3000

This is a breaking change. I'm open to other ideas.