Handle error that is emitted from process.nextTick

Fixes http://teampulse.telerik.com/view#item/279371