build: fix runtime errors not being logged out on karma initialization
build: fix runtime errors not being logged out on karma initialization

* Equivalent commit to angular/material#9888

benbraou/flex-layout,benbraou/flex-layout,benbraou/flex-layout,angular/flex-layout,angular/flex-layout,angular/flex-layout,angular/flex-layout,benbraou/flex-layout