Ex-cop escapes conviction despite judge's doubts