Ensure the URL pieces are being turned into Strings and that nil pieces are excluded.