call old onerror when it's already defined
Merge pull request #630 from yujiosaka/master

call old onerror when it's already defined