feat(ngMock/$exceptionHandler): log errors when rethrowing

Now the `rethrow` mode will also record a log of the error in the same
way as the `log` mode.

Closes #10540
Closes #10564