Fixes #12719
Return dict if networkid doesn't exist when attaching
Merge pull request #12723 from gtmanfred/develop

Fixes #12719