Fix anomaly/lof fails to input zero feature with inverted_index: fixes #315