[#51881129] Check for the presence of an image before converting to Base64.