Fix assert when third-party register app server URL is malformed