Fix error in getWindowPosition method of remoteDriver class.