Fixed conflict dialog in IE8

- Fixed JS error that prevent the conflict dialog to open #5060
- Fixed JS error that prevented the overwrite case to run
Merge pull request #5262 from owncloud/files-ie8-conflictdialogbrokenfix

Fixed conflict dialog in IE8