Guard against ctx.config being unset or None

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>