Fix critical warnings on JSON graphs without "inports" or "outports"

These are optional, need to handle them gracefully