Fixes IE10 compatibility of stack traces.

Change-Id: I8b909e153bb91b1d6ea84df5712c7aa4786bbcb8
(cherry picked from commit a38e34cd19a28dca8875ab9f3e73acd403167dde)