Fix validation_hook failure handler and make OmsSecurityPolicy usable directly in debug logs (OMS-413)