You did not share how the ViewBag is populated. If a ViewBag property has a null value then just write an "if" condition that checks for null.
<div class="requestInfo-flex-div-1">
<label style="width: 20mm; border-bottom: solid 1px black; text-align: center;">@ViewBag.Solicitations </label>
</div>
@if (@ViewBag.Solicitations != null)
{
<div style="margin-left:-100px;">
Solicitations of Customer
</div>
}