Reset current and default context when global object is cleared.

Hat tip to sabof.