fix URL check for _notifyAPI method