vm_definition: check network model definition before use it

Signed-off-by: Hiroshi Miura <miurahr@linux.com>