XMPValidate: fix undefined variable for logger