I am pretty sure it isn't just normal Essentials V18.1, but he is using the github dev version.I can't replicate this in a clean copy of v18.1. Have you made any script changes that you think might cause this?
def pbCaptureCalc in another if statement which checks pbInSafari? and see if you get an error.