Fix iframe onload for upload errors handling (#1489379)