Added an additional check to BlobRef constructor.