Fix an issue saving pages behind a proxy in Safari

Apparently Safari throws when trying to clone a function instead of
silently dropping it