Fix update_luids() to work with lists not containing dicts.