dm: core: Correct the return value for uclass_find_first_device()