handle interface nil options before writing JSON

Closes #2234

Docker-DCO-1.1-Signed-off-by: Charlie Lewis <charliel@lab41.org> (github: cglewis)