fix uploading files via ajax in Safari 11
fix uploading files via ajax in Safari 11

before form submission, clone form and remove empty file inputs as these causes Safari 11 to stall

https://stackoverflow.com/questions/49672992/ajax-request-fails-when-sending-formdata-including-empty-file-input-in-safari
vojtech-dobes/nette.ajax.js