CLOUDSTACK-5663 : Added the NULL CIDR check to avoid NPE for createNetwork and listNetwork

Signed-off-by: Daan Hoogland <daan@onecht.net>