cgm_get: support NULL value

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>