Handle undefined or null value in part.body.data