Bug #1810: Fix oned crash when calling attachdisk with an improperly formated DISK template

Signed-off-by: Simon Boulet <simon@nostalgeek.com>
Bug #1810: Fix oned crash when calling attachnic with an improperly formated NIC template

Signed-off-by: Simon Boulet <simon@nostalgeek.com>