Diff two arrays gives ok with wrong answer

I just coded the second intermediate algorithm with a couple of for loops and if statements.
I didn’t use the hints.
I found out that the answer is accepted when the result still contains null values in the array.

To me, it seems like this is not a correct answer and the system shouldn’t accept it. Am I wrong? Or does this need to change?