Fixing issue where calls to .escape() before client initialization were throwing fatal errors