[TIMOB-6493] Fixes takeScreenshot orientation on iOS 8
Merge pull request #6030 from jonalter/TIMOB-6493-3_4_X

[TIMOB-6493] Fixes takeScreenshot orientation on iOS 8