Fixed the modal display logic to actually use the cookie checking settings.