When we try to get the profile entity from the form state, the code expects to have an entity but gets an array : 0 => entity.
We need to reset() the value to get the entity. I'll fix it.
Active
3.0
Code