HI
Not sure if its just me , but i cant get the code working at all, it just generates lots of Errors in the Google Console when i check?
I am also on Version 2.1.4 | and its not working with or without the hack you mentioned
Got it sorted, Sorry i had the popup disabled, which was causing the error, but the new version of WP Popups has lost the trigger function now which is why its confusing, i just set it to display after a certain time when enabled and set the time to 2 hours so no ones going to be on the site for that long anyhow.