Don't use for..in to iterate the array of errors from an XHR, fix for W-01780781

@rev goliver@
@bug W-1780781@
Merging origin/fabbott/master-pending-W1780781 into master