Fix logic for setting bridge in portbindings