Fix "isServer" check throwing error.