Fix the bug that 'flatMap' swallows OnErrorNotImplementedException

Fixed #1365
Not sure if any other place will swallow `OnErrorNotImplementedException` or the fatal error.