Membership 2 Pro login form prevents map from showing

There is map on our site that is not displaying for non-logged in users. It shows correctly to logged in users. During troubleshooting it was discovered that culprit is the Membership 2 Pro login form that generates JS errors in browser console about duplicated IDs.
Removing form fixes map.

More details in chat transcript.