Fix error looking at empty port in sp plugin.