Hi, 
I think we needn't assign cc.Director.prototype._beforeVisitScene to null again.

Thank you.