When the error message comes up, you need close that window and open a new browser.
Type in this link: http://captive.apple.com/hotspot-detect.html
The splash page will show up and you can get the Mac connected with wifi.
You can ask your users to keep this link as a bookmark. But please remind them they have to close the windows which shows the error message. Otherwise it doesn't work.