Bug 836087 - Avoid using doubles for lastIndex in ExecuteRegExp(). r=nbp