Fixed an issue with restoring tainted RegExp properties