ENYO-1891: do not crash when no PGB token or user is defined (2)

- Do not try to JSON-parse an empty/undefined answer

Enyo-DCO-1.1-Signed-off-by: Francois-Xavier KOWALSKI <francois-xavier.kowalski@hp.com>