added a guard against non urls being used as locations for catalogs