Sorry, I don’t have time currently to delve into a custom theme. I’d recommend creating a staging site so you can test, or put up a temporary “Down For Maintenance” message for 1 minute while you swap themes and check. That’s the only way to know for sure where you problem is.