prevention errors when invalided gadget url is inserted.