PR20399: Do not assert when adding an implicit member coming from a module at
writing time.

Patch by Vassil Vassilev!