Perhaps, I'm using the empty function wrong, but this is what I did:

I just took out the part that could cause the formatting issue and the issue persists. Any idea why the new error is?

It seems it doesn't work for nulls the empty one. The length would be strange, to be honest.