only check lines if there is a result of cmd

Hi

if cmd is executed on a non-arista box, "lines" will be nil and nil.split is not working.
Therefore an empty array is returned if the result of cmd is nil.

Greetz,
Andre