fix enpoint bug

When enable endpoint, default URL It doesn't work, because conditional JavaScript is wrong, NULL is unlike empty.