lib/json: also check for null in Sequence

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>