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

@karlitschek @DeepDiver1975 @schiesbn @butonic