Hi,
I am using the onboarding template, i get this error when someone new opens the app.

I understand because they do not have a profile picture. I have used IsBlank in the formula even then this error pops up, please help thank you.

Here is the formula.
ClearCollect(UserPhotoCache,
{
UserId:MyUserId,
Photo:If(!IsBlank(MyUserId),If(Office365Users.UserPhotoMetadata(MyUserId).HasPhoto,Office365Users.UserPhoto(MyUserId),'default-profile')),
Time:Now()
});