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>
Merge pull request #1325 from will-Do/console_bug_fix

Init serial_ports to [] instead of None