fix crash in ERSI with empty URL