bug 44027: fix incorrect use of array_diff_assoc

Patch by f.trott, see https://bugzilla.wikimedia.org/attachment.cgi?id=11633&action=edit

Change-Id: I8f152eb9e5472a953e8d7f5449611bbafba91839