See the release notes of Mx6.10.3 the part about the or statement: https://docs.mendix.com/releasenotes/modeler/modeler-6.10.3
This seems to be a known bug. I think you need to upgrade your model.
Regards,
Ronald
You can simplify this to,
and
(
($MendixCID = empty or
(Registration.Registration_Provider_Implant/Registration.Provider/UID = $MendixCID or
Registration.Registration_Provider_Following/Registration.Provider/UID = $MendixCID)
)
]
Neverthelesss every xpath must be executed well.