correct bug in 'find-bacnet-port' function