registry/session: fix panic in GetRemoteImageLayer

Fixes #7860
Do we need to close body at all here?