WA AG's office admits flawed advice in early prison releases