[MERGE #3301 @aneeshdk] Clear the auto restore data if we have a valid function already
[MERGE #3301 @aneeshdk] Clear the auto restore data if we have a valid function already

Merge pull request #3301 from aneeshdk:AutoRestoreBug

We don't have to track the restore data if the function body is valid.

Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore