errorWithMetadataOrNull

Returns the metadata value from the Error if the AsyncResult is Error, and has metadata or the requested type.