Better MetaCont problems detection and reporting in OutputStream (23.0)

Existing code in the OutputStream was only checking if a MetaCont was found, but not if the object retrieved from it was not null. Added this check and also error code propagation to the caller.

Merge request reports