I thought this was unsolvable, but someone claims to have a work around: https://github.com/appium/appium/issues/6618#issuecomment-274491707.