Updated GET payload extraction to handle empty payloads (#502)