Fix: filterURL() must handle null URLs