added hook for webpage.onResourceError

Added hook for webpage.onResourceError as described #610