[corlib] Better exception message for unexpected task result