Extracts a string field from a payload object safely.
The payload object to extract from
The field name to extract
The string value or empty string if not found/invalid
Extracts a string field from a payload object safely.