Init serial_ports to [] instead of None

As serial_ports used as a list, so init it to [] instead of None.
This will avoid 'TypeError' if serial_ports has specific value.

Signed-off-by: Yanbing Du <ydu@redhat.com>