Handle open ports when saving a model

An open port shows as "null" in the model JSON.