Added code to filter out docking ports that do not have any available attachNodes.